<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<jsp:useBean id="message" class="com.boc.image.web.UserMessage"></jsp:useBean>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@page import="sun.misc.BASE64Decoder"%>
<%@page import="java.util.Map"%>
<%
	Map map = message.getMessageDetail(request.getParameter("nId"),request.getParameter("cYdzt"));
%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE8" />
<title>好多图免费图片外链空间</title>
<meta name="copyright" content= "免费图片空间上传 Copyright(c) 2011" />
<meta name="application-name" content="免费图片空间上传" />
<meta name="keywords" content="淘宝相册|免费相册|外链免费相册|淘宝图片空间|淘宝免费相册|淘宝外链相册|免费可外链相册|图片外链网站" /> 
<meta name="description" content="专业淘宝相册,外贸相册,提供稳定的淘宝图片存储空间，支持相册批量上传、批量贴图。中国唯一的彻底免费的淘宝免费相册。">
<link type="text/css" href="css/user.css" rel="stylesheet"/>
<script type="text/javascript" src="../../js/public.js"></script>
<script type="text/javascript" src="../../js/AjaxProxy.js"></script>
</head>
<script type="text/javascript">
	window.onload = function () {
		$("delete").onclick = f_delete;
		$("reply").onclick = f_reply;
	}
	
	function f_delete(){
		if(!confirm("确定删除该信件?"))return;
		var gcDel = new AjaxProxy();
		gcDel.addParm("nId",<%=request.getParameter("nId")%>);
		gcDel.invoke("message.deleteUserMessage",false);
		var flag = gcDel.getString("PN_RET");
		if(flag != 0) {
			alert(gcDel.getString("PC_MSG"));
		}
		alert("信息删除成功");
		window.location.replace("/filter/user/message");
	}
	
	function f_reply(){
		if(<%=request.getParameter("cYxhf")%> == 0){
			alert("该消息不允许回复!");
			return;
		}
		if(<%=request.getParameter("cZt")%> == 1){
			alert("该消息已回复!");
			return;
		}
		window.location.replace("/filter/user/newmsg?nId=<%=request.getParameter("nId")%>&cType=0&cTitle=<%=(new sun.misc.BASE64Encoder()).encode( map.get("cTitle").toString().getBytes())%>");
	}
</script>

<body>
<div class="frame_01">
	<div class="frame_01_left">阅读信件</div>
	<div class="frame_01_right">
		<a href="/index.html" target="_top">首页</a>&nbsp;》
		<a href="/core" target="_top">管理中心</a>&nbsp;》
		<a href="/filter/user/message" target="content">站内信</a>&nbsp;》
		<font color="#000">阅读信件</font>
	</div>
</div>
<div class="frame_02"></div>

<div class="frame_03" style="height:40px;">
<table width="755" border="0" cellspacing="0">
  <tr>
	<td align="center" valign="top">
		<table width="700" border="0" cellspacing="0">
		  <tr>
		  	<td align="left" style="border-bottom:4px #FF0000 solid" height="30">
				<input type="button" id="back" value="←返回 " onClick="javascript:window.location.replace('/filter/user/message')">&nbsp;&nbsp;
				<input type="button" id="delete" value=" 删除 ">&nbsp;&nbsp;
				<input type="button" id="reply" value=" 回复 ">
		  	</td>
		  </tr>
		</table>
	</td>
  </tr>
</table>
</div>
<div class="frame_03" style="overflow:hidden;">

<table width="755" border="0" cellspacing="0">
  <tr>
	<td align="center" valign="top">
		<table width="700" border="0" cellspacing="0">
		  <tr>
		  	<td align="left" height="26" style="background: #eff5fb">
		  		&nbsp;&nbsp;<font color="#2131a1" style="font-size: 15px; font-weight: bold"><%=map.get("cTitle") %></font>
		  	</td>
		  </tr>
		  <tr>
		  	<td align="left" height="21" style="background: #eff5fb">
		  		&nbsp;&nbsp;<font color="#798699">发件人：<%=map.get("nSendid").toString().equals("-1")?"系统管理员":"其它" %></font>
		  	</td>
		  </tr>
		  <tr>
		  	<td align="left" height="21" style="background: #eff5fb">
		  		&nbsp;&nbsp;<font color="#798699">时&nbsp;&nbsp;&nbsp;&nbsp;间：<%=map.get("dFssj") %></font>
		  	</td>
		  </tr>
		  <tr>
		  	<td align="left" height="21" style="background: #eff5fb">
		  		&nbsp;&nbsp;<font color="#798699">收件人：<%=map.get("cLogin") %></font>
		  	</td>
		  </tr>
		  <tr>
		  	<td align="left" height="5">&nbsp;
		  		
		  	</td>
		  </tr>
		  <tr>
		  	<td align="left">
				<pre style="color:#000"><%=map.get("cContent") %></pre>
		  	</td>
		  </tr>
		</table>
	</td>
  </tr>
</table>
</div>
<div class="frame_03" style="height:10px;">

</div>
<div class="frame_04"></div>
</body>
</html>